function [isSelected, filterID, selectedRow] = getSelectedFilter(main)

filterID = 0;
selectedRow = 0;

if main.filterAmount > 0
selectedRow = get(main.handles.filterList, 'Value');

filterID = main.filterTracking{selectedRow, 1};

isSelected = 1;
else
    isSelected = 0;
end